package main

import (
	"fmt"
	"os"
)

func main() {
	if len(os.Args) != 2 {
		fmt.Println("stats FILE/DIRECOTRY")
		os.Exit(1)
	}

	fod := os.Args[1]

	info, err := os.Stat(fod)
	fmt.Println("name =", info.Name())
	fmt.Println("size =", info.Size())
	fmt.Println("mode =", info.Mode())
	
	if (info.IsDir()) {
		fmt.Println("Dir? = Yes")
	} else {
		fmt.Println("Dir? = No")
	}

	fmt.Println("sys  =", info.Sys())
	
	if err != nil {
		fmt.Println("Error: ", err)
	}
}